package net.bw.realtime.jtp.service.impl;

import net.bw.realtime.jtp.bean.TrafficProvinceReport;
import net.bw.realtime.jtp.mapper.TrafficProvinceStatsMapper;
import net.bw.realtime.jtp.service.TrafficProvinceStatsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/*
 * @ Author：liuyawei
 * @ Date：2025-05-24
 */
@Service
public class TrafficProvinceStatsServiceImpl implements TrafficProvinceStatsService {

    // 注入mapper
    @Autowired
    TrafficProvinceStatsMapper trafficProvinceStatsMapper;

    // 实现查询
    @Override
    public List<TrafficProvinceReport> getProvinceCount(String date) {
        return trafficProvinceStatsMapper.selectProvinceCount(date);
    }
}
